package com.ecommerce.product.enums;

import lombok.Getter;

/**
 * 商品类型枚举
 */
@Getter
public enum ProductType {
    ELECTRONICS("electronics", "电子产品"),
    CLOTHING("clothing", "服装"),
    FOOD("food", "食品"),
    BOOKS("books", "图书");

    private final String indexName;
    private final String description;

    ProductType(String indexName, String description) {
        this.indexName = indexName;
        this.description = description;
    }

    public String getIndexName() {
        return "product-" + indexName;
    }
}
